package com.youhome.service.service;

import com.youhome.common.exception.CustomException;
import com.youhome.service.model.BRecommendHouse;
import com.youhome.service.model.ListHubList;
import com.youhome.service.model.Principal;

import java.util.List;

/**
 * Created by chen365 on 2017/11/17.
 */
public interface BRecommendHouseService {

    int delete(Long companyId, String houseId);

    int insert(BRecommendHouse record);

    Boolean selectIsExistByCompanyIdAndHouseID(BRecommendHouse record);

    List<Long> selectHouseIDByCompanyId(Long companyId);

    int sort(Long companyId, String houseId, Integer sort);

    int delete(Long companyId);

    int selectCountByCompanyId(Long companyId);

    List<ListHubList> selectRecommendHouseByCompanyId(String uuid) throws CustomException;

    int selectRecommendHouseCount(Principal principal) throws CustomException;

    void deleteRecommendHouseByAll(Principal principal) throws CustomException;

    void deleteRecommendHouseByHouseId(Principal principal, String houseId) throws CustomException;

    void recommendHouse(Principal principal,String houseId) throws CustomException;
}
